﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Tongiao.Manager;
using Tongiao.Entity;


public partial class Control_News_Detail : System.Web.UI.UserControl
{
    public Guid NewsId
    {
        get { return !string.IsNullOrEmpty(Request["NewsId"]) ? new Guid(Request["NewsId"]) : Guid.Empty; }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        LoadData();
    }
    void LoadData()
    {
        DataTable dtNews = Tg_NewsInfosManager.CreateInstant().SelectById(NewsId);
        if (dtNews.Rows.Count > 0)
        {
            repNews.DataSource = dtNews;
            repNews.DataBind();
        }
    }
}
